package org.zcl.sqlserver.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.zcl.sqlserver.entity.Notice;

/**
 * .
 *
 * @author zhuchenglin
 * @since 2024/7/19 14:50
 */
public interface NoticeRepository extends JpaRepository<Notice, Integer>, JpaSpecificationExecutor<Notice> {

    Notice findByIdAndDelFlag(Long id, Boolean delFlag);

    Notice findByTitleAndDelFlag(String title, Boolean delFlag);

    Integer countAllByFactoryViewAndStatusAndDelFlag(Boolean factoryView, int status, Boolean delFlag);

}
